//
//  YLNewsTableViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/2.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLNewsTableViewCell.h"
#import "YLMessageCenterModel.h"

@interface YLNewsTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end


@implementation YLNewsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(YLMessageCenterModel *)model
{
    _model = model;
    _titleLabel.text = model.noticeTitle;
    _contentLabel.text = model.noticeContent;
    _timeLabel.text = model.sendTimeText;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


+ (NSString *)cellID
{
    return @"YLNewsTableViewCell";
}

@end
